package face.pay.web.com.cenenter.safe.controller;

import face.pay.system.annotation.CurrentUser;
import face.pay.entity.UserInfo;
import face.pay.util.ResultMessage;
import face.pay.web.com.user.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
public class ValidateCodeController {

    @Autowired
    IUserService iUserService;

    @RequestMapping(value = "/sendValidateCode")
    @ResponseBody
    public ResultMessage sendValidateCode(@CurrentUser UserInfo loginUser, String bizType) {
        return  iUserService.sendValidateCode(loginUser,bizType);
    }


}
